import React, {Component} from 'react';
import {BrowserRouter, Route} from 'react-router-dom';
import Index from '../../containers/Login/index';
import Main from '../../containers/Main/index';
import Test from '../../view/Test'

class Router extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <BrowserRouter>
                <div>
                    <Route exact path="/main" component={Main}>
                        <Route path="/test" component={Test}/>
                    </Route>
                    <Route path="/login" component={Index}/>
                </div>
            </BrowserRouter>
        )
    }
}

export default Router;


